home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Events / Event Classes / User Events / UserEvent.h < prev   
Encoding:
Text File  |  1997-06-28  |  792 b   |  38 lines  |  [TEXT/CWIE]

  1. // UserEvent.h
  2.  
  3. #ifndef UserEvent_h
  4. #define UserEvent_h
  5.  
  6. #ifndef Event_h
  7. #include "Event.h"
  8. #endif
  9.  
  10. class UserEvent: public Event
  11.   {
  12.     private:
  13.         static bool shift;
  14.         static bool control;
  15.         static bool option;
  16.         static bool command;
  17.         static bool capsLock;
  18.  
  19.         static bool rightShift;
  20.         static bool rightControl;
  21.         static bool rightOption;
  22.         
  23.     public:
  24.         UserEvent( const EventRecord& );
  25.         
  26.         static bool Shift()                { return shift; }
  27.         static bool Control()            { return control; }
  28.         static bool Option()                { return option; }
  29.         static bool Command()            { return command; }
  30.         static bool CapsLock()            { return capsLock; }
  31.         
  32.         static bool RightShift()        { return rightShift; }
  33.         static bool RightControl()        { return rightControl; }
  34.         static bool RightOption()        { return rightOption; }
  35.   };
  36.  
  37. #endif
  38.